//
//  WeatherInfoViewController.h
//  We365
//
//  Created by Pham Khuong Duy on 10/21/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define numberOfSeconds 120

struct WeatherInfo
{
    int currentTemp;
    int highTemp;
    int lowTemp;
    NSString *icon;
};

@interface WeatherInfoViewController : UIViewController
{
    UIImageView *headerImageView;
    UILabel *todayLabel;
    UILabel *tomorrowLabel;
        
    float latitude;
    float longitude;
    struct WeatherInfo today;
    struct WeatherInfo tomorrow;
    
    NSURLConnection *conn;
    NSMutableData *webData;
}

@property (nonatomic, retain) IBOutlet UIImageView *headerImageView;
@property (nonatomic, retain) IBOutlet UILabel *todayLabel;
@property (nonatomic, retain) IBOutlet UILabel *tomorrowLabel;

@property (nonatomic) float latitude;
@property (nonatomic) float longitude;
@property (nonatomic) struct WeatherInfo today;
@property (nonatomic) struct WeatherInfo tomorrow;

@property (nonatomic, retain) NSURLConnection *conn;
@property (nonatomic, retain) NSMutableData *webData;

- (void)getWeather;

- (UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 andImage:(UIImage *)image3;
- (void)showResult:(BOOL)isError;

@end
